from datetime import datetime

timestamp_ms = 1677035270510  # 您给出的毫秒时间戳
timestamp_s = timestamp_ms / 1000  # 转换为秒

# 从1970-01-01到现在的总天数
start_date = datetime(1970, 1, 1)
target_date = datetime.utcfromtimestamp(timestamp_s)

days_since_epoch = (target_date - start_date).days
# 计算总天数，直接除以一天的秒数
days_since_epoch = timestamp_s // 86400

print(days_since_epoch)

print("天数：", days_since_epoch)